{% set _pageRoute = '/home' %}

{% extends "_layouts/default.twig" %}

{% block style %}
{% endblock %}

{% block body %}

<div class="jumbotron">
  <h1>Hello, welcome!</h1>
  <p>...</p>
  <p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
</div>
{#{{ dump(_globals.lang.tran('app:test')) }}#}
<div class="row">

  {% for item,options in items if options.onHomeShow is defined and options.onHomeShow %}
    <div class="col-xs-12 col-sm-4 col-md-3">
      <div class="thumbnail">
        {% if options.coverImage is defined %}
          <img src="{{ options.coverImage }}" style="height: 200px; width: 100%; display: block;">
        {% else %}
        <img data-src="holder.js/100%x200" alt="100%x200" style="height: 200px; width: 100%; display: block;" src="" data-holder-rendered="true">
        {% endif %}
        <div class="caption">
          <h3>{{ item }}</h3>
          <p>
            {% if options.description is defined %}
              {{ options.description|raw }}
            {% else %}
              文档项目描述... ...
            {% endif %}
          </p>
          <p>
            {% if options.defaultPage is defined %}
              <a href="{{ item }}/{{ options.defaultPage }}" class="btn btn-primary" role="button">View</a>
            {% else %}
              <a href="{{ item }}" class="btn btn-primary" role="button">View</a>
            {% endif %}
          </p>
        </div>
      </div>
    </div>
  {% endfor %}

</div>

{% endblock %}

